package com.lanhe.game.sysAppUser.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lanhe.game.sysAppUser.domain.SysAppUser;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * app用户登录Service接口
 * 
 * @author tianliang
 * @date 2024-01-22
 *
 */
public interface ISysAppUserService  extends IService<SysAppUser>
{
    /**
     * 查询app用户登录
     * 
     * @param appUserId app用户登录主键
     * @return app用户登录
     */
    public SysAppUser selectSysAppUserByAppUserId(Long appUserId);

    public  SysAppUser selectAppuserId(String openId);


    /**
     * 查询app用户登录列表
     * 
     * @param sysAppUser app用户登录
     * @return app用户登录集合
     */
    public List<SysAppUser> selectSysAppUserList(SysAppUser sysAppUser);

    /**
     * 新增app用户登录
     * 
     * @param sysAppUser app用户登录
     * @return 结果
     */
    public int insertSysAppUser(SysAppUser sysAppUser);

    /**
     * 修改app用户登录
     * 
     * @param sysAppUser app用户登录
     * @return 结果
     */
    public int updateSysAppUser(SysAppUser sysAppUser);

    /**
     * 更新基础金额
     * @param appUserid
     * @param totalAmount
     * @return
     */
    int updateLhMemberBalance(Long appUserid, BigDecimal totalAmount);

    /**
     * 修改金额
     * @param appUserid
     * @param totalAmount
     * @param type
     */
    void updateMemberBaseBalance(Long appUserid, BigDecimal totalAmount, Integer type);

    /**
     * 批量删除app用户登录
     * 
     * @param appUserIds 需要删除的app用户登录主键集合
     * @return 结果
     */
    public int deleteSysAppUserByAppUserIds(Long[] appUserIds);

    /**
     * 删除app用户登录信息
     * 
     * @param appUserId app用户登录主键
     * @return 结果
     */
    public int deleteSysAppUserByAppUserId(Long appUserId);

}
